<template>
	<view class="main">
		<view class="text1">接种原因：</view>
		<view class="text2">
			{{this.yimiaoxiangqing.reason}}
		</view>
		<view class="text1">接种反应：</view>
		<view class="text2">{{this.yimiaoxiangqing.reaction}}
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				token: '',
				yimiaoxiangqing:{},
			
			}
		},
		onLoad(options) {
			this.token = uni.getStorageSync("Authorization")
			console.log(options)
			uni.request({
				url: this.$serverUrl + "/api/vaccine/"+options.id,
				header: {
					Authorization: this.token
				},
				success: (result) => {
					this.yimiaoxiangqing = result.data.data

					console.log("疫苗详情", this.yimiaoxiangqing)
				},
				fail: (error) => {
					console.log(error.data)
				}
			})
			
		},
		methods: {

		}
	}
</script>

<style>
	.main {
		width: 95%;
		margin-left: 10px;
	}

	.text1 {
		font-weight: bold;
		font-size: 13px;
		margin-top: 10px;
		margin-bottom: 10px;

	}

	.text2 {
		font-size: 12px;
		line-height: 22px;
	}
</style>
